import {testReducer} from './test'
import {configureStore} from '@reduxjs/toolkit'
import { useDispatch } from 'react-redux'

export const store=configureStore({
    reducer:{
        test:testReducer
    }
})
export type AppDispatch = typeof store.dispatch
export type AppState = ReturnType<typeof store.getState>
export const useAppDispatch = () => useDispatch()

export * from './test'